package cn.bouncyslime.graduationProject.nba.test;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author 张一卓
 * @date 2020/5/6 18:35
 **/
public class RegexTest2 {
    public static void main(String[] args) {
        String seasonRegex = " (.*)赛季 (.*)";
        Pattern seasonPattern = Pattern.compile(seasonRegex);
        String seasonString = " 19-20赛季 常规赛";
        Matcher matcher = seasonPattern.matcher(seasonString);
        if (matcher.find()){
            System.out.println(" ==== ");
            System.out.println(matcher.group(1));
            System.out.println(matcher.group(2));

        }
    }
}
